<!--
    说明：招聘企业-企业预览pc
 -->
<template>
  <section class="pc-review-page">
    <!-- 公司基本信息 -->
    <div class="company-info">
      <img
        v-imgError
        class="logo-img"
        src="../../../assets/images/logo_demo.png"
        alt="logo-img"
      >
      <div class="right-block">
        <div class="name">Gridex科技</div>
        <div class="area">电子商务</div>
      </div>
      <div class="right-hire">
        <div class="hire-num">120</div>
        <div class="hire-title">在招职位</div>
        <div class="click-num">点击量：300</div>
      </div>
    </div>
    <!-- 热招职位 -->
    <div class="row-item">
      <div class="title">
        热招职位
        <div class="all">查看全部职位<span class="all-icon" /></div>
      </div>
      <div id="jobSwiper" class="swiper">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <div class="job-item">
              <div class="job-name">
                产品实习生 <span class="salary">200-250/天</span>
              </div>
              <div class="other">
                4天/周 <span class="line" /> 3个月<span class="line" />本科<span class="line" />在校<span class="line" />深圳
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="job-item">
              <div class="job-name">
                运营实习生 <span class="salary">200-250/天</span>
              </div>
              <div class="other">
                4天/周 <span class="line" /> 3个月<span class="line" />本科<span class="line" />在校<span class="line" />深圳
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="job-item">
              <div class="job-name">
                前端实习生 <span class="salary">200-250/天</span>
              </div>
              <div class="other">
                4天/周 <span class="line" /> 3个月<span class="line" />本科<span class="line" />在校<span class="line" />深圳
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="job-item">
              <div class="job-name">
                产品实习生 <span class="salary">200-250/天</span>
              </div>
              <div class="other">
                4天/周 <span class="line" /> 3个月<span class="line" />本科<span class="line" />在校<span class="line" />深圳
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 企业简介 -->
    <div class="row-item">
      <div class="title">Gridex科技简介</div>
      <div class="company-desc">
        Gridex科技是一家数据服务企业，为合作方提供宏观指标数据、行业指标数据、个性化数据的查询服务。
        前海数据是一家数据服务企业，为合作方提供宏观指标数据、行业指标数据、个性化数据的查询服务。
        前海数据是一家数据服务企业，为合作方提供宏观指标数据、行业指标数据、个性化数据的查询服务。
        前海数据是一家数据服务企业，为合作方提供宏观指标数据、行业指标数据、个性化数据的查询服务。
        前海数据是一家数据服务企业，为合作方提供宏观指标数据、行业指标数据、个性化数据的查询服务。
        Gridex科技是一家数据服务。
        前海数据是一家数据服数据服前海数据是一家数据服务企业，为合作方提供宏观指标数据、行业指标数据、个性化数据的查询服务。
        前海数据是一家数据服务企业
      </div>
    </div>
    <!-- 企业环境 -->
    <div class="row-item">
      <div class="title">企业环境</div>
      <div id="mySwiper" class="company-environment swiper">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <div>
              <img
                src="https://demo-oss.oss-cn-beijing.aliyuncs.com/png/7f8f0f0aeaed481983bd0212fe7d47a8.png"
                alt=""
              >
            </div>
          </div>
          <div class="swiper-slide">
            <div>
              <img
                src="https://demo-oss.oss-cn-beijing.aliyuncs.com/png/7f8f0f0aeaed481983bd0212fe7d47a8.png"
                alt=""
              >
            </div>
          </div>
          <div class="swiper-slide">
            <div>
              <img
                src="https://demo-oss.oss-cn-beijing.aliyuncs.com/png/7f8f0f0aeaed481983bd0212fe7d47a8.png"
                alt=""
              >
            </div>
          </div>
          <div class="swiper-slide">
            <div>
              <img
                src="https://demo-oss.oss-cn-beijing.aliyuncs.com/png/7f8f0f0aeaed481983bd0212fe7d47a8.png"
                alt=""
              >
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 企业地址 -->
    <div class="row-item">
      <div class="title">企业地址</div>
      <div class="company-address">
        <div class="item">
          <span class="position-icon" />广州市荔湾区广州市荔湾区龙溪大道410大参林医药集团
        </div>
        <div class="item">
          <span class="position-icon" />广州市荔湾区广州市广州广州图可数据有限公司
        </div>
        <div class="item">
          <span class="position-icon" />上海市上海街道浦壹电子科技有限公司
        </div>
      </div>
    </div>
  </section>
</template>

<script>
import Swiper from 'swiper'
import 'swiper/swiper.scss'
export default {
  name: 'PcReview',
  data() {
    return {
      tagType: 0,
      swiper: null,
      jobSwiper: null
    }
  },
  mounted() {
    this.initSwiper()
  },
  methods: {
    initSwiper() {
      if (this.swiper === null) {
        this.swiper = new Swiper('#mySwiper', {
          slidesPerView: 'auto',
          spaceBetween: 10,
          observer: true,
          observeParents: true
        })
      }
      if (this.jobSwiper === null) {
        this.jobSwiper = new Swiper('#jobSwiper', {
          slidesPerView: 'auto',
          spaceBetween: 10,
          observer: true,
          observeParents: true
        })
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.pc-review-page {
  position: relative;
  padding: 15px 10px;
  width: 375px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d4d6da;
  overflow: hidden;
  .company-info {
    position: relative;
    height: 92px;
    width: 100%;
    border-bottom: 1px solid #d4d6da;
    .logo-img {
      display: block;
      width: 63px;
      height: 63px;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid #d4d6da;
      float: left;
      margin-right: 12px;
    }
    .right-block {
      position: relative;
      overflow: hidden;
      width: calc(100% - 75px);
      height: 63px;
      display: flex;
      flex-flow: column nowrap;
      justify-content: center;
      align-items: flex-start;
      .name {
        font-size: 22px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
        color: #37383d;
        line-height: 30px;
        margin-bottom: 5px;
      }
      .area {
        font-size: 15px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #9597a0;
        line-height: 21px;
      }
    }
    .right-hire {
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      display: flex;
      flex-flow: column nowrap;
      justify-content: flex-start;
      align-items: flex-end;
      .hire-num {
        font-size: 20px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
        color: #37383d;
        line-height: 28px;
        margin-bottom: 2px;
        padding-right: 7px;
      }
      .hire-title {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #9597a0;
        line-height: 17px;
        margin-bottom: 2px;
      }
      .click-num {
        font-size: 10px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #9597a0;
        line-height: 14px;
      }
    }
  }
  #jobSwiper {
    position: relative;
    width: 365px;
    margin-left: -10px;
    .swiper-slide {
      width: 322px;
    }
  }
  #mySwiper {
    width: 365px;
    margin-left: -10px;
  }
  .row-item {
    position: relative;
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #d4d6da;
    &:last-child {
      border-bottom: 1px solid #fff;
    }
    .title {
      position: relative;
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      text-align: left;
      font-weight: 500;
      color: #37383d;
      line-height: 22px;
      margin-bottom: 15px;
      .all {
        position: absolute;
        right: 0;
        bottom: 0;
        font-size: 12px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #9597a0;
        line-height: 17px;
        vertical-align: bottom;
        cursor: pointer;
        .all-icon {
          display: inline-block;
          width: 9px;
          height: 18px;
          background: url("../../../assets/images/more.png") no-repeat center
            center / cover;
          vertical-align: bottom;
          margin-left: 3px;
        }
      }
    }
    .job-item {
      position: relative;
      width: 325px;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid #d4d6da;
      padding: 15px;
      cursor: pointer;
      .job-name {
        font-size: 17px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #37383d;
        line-height: 24px;
        margin-bottom: 23px;
        .salary {
          font-size: 15px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #9597a0;
          line-height: 12px;
          float: right;
        }
      }
      .other {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #9597a0;
        line-height: 19px;
        .line {
          position: relative;
          display: inline-block;
          width: 1px;
          height: 9px;
          background: #9597a0;
          margin: 0 11px;
        }
      }
    }
    .company-desc {
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #9597a0;
      line-height: 25px;
    }
    .swiper {
      width: 100%;
      height: 100%;
    }
    .company-environment {
      .swiper-slide {
        text-align: left;
        font-size: 18px;
        background: #fff;
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }
      .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
    .company-address {
      position: relative;
      .item {
        position: relative;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #37383d;
        line-height: 20px;
        background: #f9f9f9;
        border-radius: 2px;
        border: 1px solid #f0f0f0;
        cursor: pointer;
        margin-top: 10px;
        padding: 8px 10px 8px 35px;
        &:first-child {
          margin-top: 0;
        }
        .position-icon {
          position: absolute;
          left: 13px;
          top: 50%;
          transform: translateY(-50%);
          display: inline-block;
          width: 12px;
          height: 14px;
          background: url("../../../assets/images/position.png") no-repeat
            center center / cover;
          vertical-align: middle;
        }
      }
    }
  }
}
</style>
